package com.cgq.pro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cgq.base.service.impl.BaseServiceImpl;
import com.cgq.pro.dao.PolicyDao;
import com.cgq.pro.entity.Policy;
import com.cgq.pro.service.PolicyService;

/**
 * 业务层组件
 * 国内政策service层实现类
 * @author chenkaile
 *
 */
@Service
public class PolicyServiceImpl extends BaseServiceImpl<Policy> implements PolicyService {

	private PolicyDao policyDao;

	@Autowired
	public void setPolicyDao(PolicyDao dao) {
		this.baseDao=dao;
		this.policyDao=dao;
	}

	public List<Policy> getAllRecords(int start, int pageSize,
			Map<String, String> map,String typeid) {
		return policyDao.getAllRecords(start, pageSize, map,typeid);
	}

	public int getTotal(Map<String, String> map, String typeid) {
		return policyDao.getTotal(map, typeid);
	}
	
}
